package net.osweb.crm.modules.core.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Otslogger entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "core_otslogger")
public class Otslogger implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -5256993461080595659L;
	private Integer id;
	private Integer userid;
	private String username;
	private String ipaddress;
	private String msg;
	private String category;
	private Timestamp createdatetime;

	// Constructors

	/** default constructor */
	public Otslogger() {
	}

	/** full constructor */
	public Otslogger(Integer userid, String username, String ipaddress,
			String msg, String category, Timestamp createdatetime) {
		this.userid = userid;
		this.username = username;
		this.ipaddress = ipaddress;
		this.msg = msg;
		this.category = category;
		this.createdatetime = createdatetime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "username")
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "ipaddress")
	public String getIpaddress() {
		return this.ipaddress;
	}

	public void setIpaddress(String ipaddress) {
		this.ipaddress = ipaddress;
	}

	@Column(name = "msg", length = 65535)
	public String getMsg() {
		return this.msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	@Column(name = "category")
	public String getCategory() {
		return this.category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	@Column(name = "createdatetime", length = 19)
	public Timestamp getCreatedatetime() {
		return this.createdatetime;
	}

	public void setCreatedatetime(Timestamp createdatetime) {
		this.createdatetime = createdatetime;
	}

}